<script>
import { layout } from '@/mixins/layout'
export default {
  name: 'DefaultColumnHeader',
  mixins: [layout]
}
</script>
<template>
  <div class="template-column-header" :style="headerBackGround">
    <div class="template-header-content" :style="headerActiveFontColor">
      <div class="template-header-title">
        <div v-if="temp.sfxs === true" class="header-title-icon"><i :class="temp.lmtb" /></div>
        <div class="header-title">{{ temp.lmmc }}</div>
      </div>
      <div v-if="temp.isMore === true " class="header-icon" @click="openLayoutMore">
        <span class="more-span">MORE<i class="el-icon-d-arrow-right" /></span>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.template-column-header {
  width: 100%;
  height: 60px;
  position: relative;
  background-color: var(--header-bak);
  padding: 0 10px;
  box-sizing: border-box;
  .template-header-content {
    width: 100%;
    height: 100%;
    line-height: 60px;
    display: flex;
    flex-flow: row nowrap;
    border-bottom: 1px solid #c2c2c2;
    justify-content: center;
    align-items: center;
    .template-header-title {
      flex: 1 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: left;
      display: flex;
      font-size: 1rem;
      font-weight: 600;
      .header-title-icon {
        width: 36px;
        height: 60px;
        text-align: center;
        line-height: 60px;
        color: var(--header-active-color);
        i {
          font-size: 1.4rem;
        }
      }
      .header-title {
        flex: 1 1;
        font-size: 1rem;
        font-weight: 600;
      }
    }
    .header-icon {
      width: 60px;
      text-align: center;
      line-height: 60px;
      cursor: pointer;
      .more-span {
        display: block;
        height: 60px;
        width: 60px;
        line-height: 60px;
        text-align: center;
        cursor: pointer;
        font-size: 0.9rem;
      }
      .more-span:hover {
        color: var(--header-active-color);
      }
    }
  }
}
</style>
